<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Formulário para Escrita da Consulta JPQL</title>
		<link href="css/bootstrap.css" rel="stylesheet">
	</head>
	<body>
		<div class="row">
			<div class="span12">
				<h3>Formulário para consultas JPQL</h3>
			</div>
		</div>
		<div class="row">
			<div class="span12">
				<f:view>
					<h:form styleClass="form-horizontal">
						<div class="control-group">
						<label class="control-label" for="inputConsulta">Consulta JPQL</label>
							<div class="controls">
								<h:inputTextarea id="inputConsulta" value="#{consulta.consulta}" cols="50" rows="5"></h:inputTextarea><br>
							</div>
						</div>
						<div class="form-actions">
							<h:commandButton styleClass="btn btn-primary" value="Consulta Coleção" action="#{consulta.consultaColecao}"></h:commandButton>
							<b> </b> <!-- Tag usada para dar um espaço entre os botões -->
							<h:commandButton styleClass="btn btn-primary" value="Consulta Entidade" action="#{consulta.consultaEntidade}"></h:commandButton>
						</div>
					</h:form>
				</f:view>
			</div>
		</div>
	</body>
</html>